It is one place for SQL,ORACLE, datawarehouse and testing concepts
3 August 2016
1 August 2016
SQL- Scenario Based Questions PART- 6
SCENARIO: We have table COUNTRY_INFO which contains country names. Country_name field has some junk characters. Those junk characters are listed in Value_1 column. Those junk characters in Country_name need to be replaced with value_2 values for all occurrences while displaying. Please see below the scenario in details.
TABLE NAME: COUNTRY_INFO
EXPECTED RESULT:
31 July 2016
SQL- Scenario Based Questions PART- 5
SCENARIO: We have table EMPLOYEE_INFO which contains Employee information. We want the output table should display NAME field and it should contain EMPNAME field values leaving behind first and last character in it. Please see below in details.
TABLE NAME: EMPLOYEE_INFO
| EMPLOYEE_INFO Table |
EXPECTED RESULT:
29 May 2016
SQL- Scenario Based Questions PART- 4
SQL- Scenario Based Questions PART- 4
SCENARIO:
Suppose there is a table which contains a column NetBalance which has both negative and positive values. Now you have to write a query to dispaly sum of all positive Balances and sum of all negative Balances.
Consider below BalanceInfo table for answering this scenario based questions:-
BalanceInfo Table
Subscribe to:
Posts (Atom)