* COUNT 1 *
select distinct count (CUSTOMER_ID) from DEMO_CUSTOMERS;
* COUNT 2 *
select count (CUSTOMER_ID)
from DEMO_CUSTOMERS
where instr(upper(CUST_LAST_NAME), upper ( nvl (:P1_CUST_LAST_NAME,CUST_LAST_NAME))) > 0
AND instr(upper(CUST_FIRST_NAME), upper ( nvl (:P1_CUST_FIRST_NAME,CUST_FIRST_NAME))) > 0
order by 1
* COUNT 3 *
select count (*) from (
select CUSTOMER_ID, Initcap( CUST_LAST_NAME ||','|| CUST_FIRST_NAME ) Name,
CUST_CITY, CREDIT_LIMIT, CUST_EMAIL, NLS_TERRITORY,
case ACCOUNT_MGR_ID
when 1 then 'John'
when 2 then 'Bill'
when 3 then 'Smith'
when 4 then 'Joe'
when 5 then 'Ron' else
'N/A'
end as MGR_id
from DEMO_CUSTOMERS
where instr(upper(CUST_LAST_NAME), upper ( nvl (:P1_CUST_LAST_NAME,CUST_LAST_NAME))) > 0
AND instr(upper(CUST_FIRST_NAME), upper ( nvl (:P1_CUST_FIRST_NAME,CUST_FIRST_NAME))) > 0
order by 1)
where (
instr(upper("NAME"),upper(nvl(:P1_SEARCH,"NAME"))) > 0 or
instr(upper("CUST_CITY"),upper(nvl(:P1_SEARCH,"CUST_CITY"))) > 0 or
instr(upper("CUST_EMAIL"),upper(nvl(:P1_SEARCH,"CUST_EMAIL"))) > 0 or
instr(upper("NLS_TERRITORY"),upper(nvl(:P1_SEARCH,"NLS_TERRITORY"))) > 0 or
instr(upper("MGR_ID"),upper(nvl(:P1_SEARCH,"MGR_ID"))) > 0
)
No. | Subject | Author | Date | Views |
---|---|---|---|---|
66 | Delete Message - Are you sure you want to delete this object? | admin | 2016.04.28 | 166 |
65 | JAVA for delete | admin | 2016.04.28 | 162 |
64 | SQL SELECT DISTINCT Statement | admin | 2016.04.29 | 161 |
63 | INSERT PROCESS | admin | 2016.04.28 | 160 |
62 | DELETE PROCESS | admin | 2016.04.28 | 158 |
61 | SQL Developer Password change / EXPORT & IMPORT | admin | 2022.03.18 | 157 |
60 | wwv_flow_files | admin | 2016.05.01 | 155 |
59 | MAX | admin | 2016.04.28 | 155 |
58 | Using SQL*Plus to Unlock and Change Passwords | admin | 2023.06.04 | 154 |
57 | PHONE NUMBER | admin | 2016.04.28 | 153 |
56 | NVL | admin | 2016.05.19 | 152 |
55 | Forgot Oracle username and password, how to retrieve? | admin | 2022.03.18 | 151 |
54 | CREATE (INSERT) PROCESS | admin | 2016.04.28 | 151 |
53 | Field Showing | admin | 2016.04.01 | 149 |
52 | Outer Join with Oracle SQL | admin | 2016.04.29 | 148 |
51 | BOOLEAN SAMPLE | admin | 2016.05.11 | 147 |
» | COUNT | admin | 2016.04.28 | 146 |
49 | Delimiter | admin | 2016.04.29 | 141 |
48 | How to Update Oracle XE | admin | 2018.04.25 | 139 |
47 | Column Data 일괄 추가 | admin | 2023.11.24 | 137 |