-
-
Using the following Customer, Country and Orders tables: Customer Table c_id c_name c_country_id 1 John 1 Country Table country_id Name 1 US 2 UK Orders Table o_id c_id Qty o_deliver_country_id 1 1 10 1 2 1 20 2
I need the following output in SQLc_id c_name c_country_lives qty o_deliver_country 1 john US 10 US 2 john US 20 UK
-
-
-
Get fieldnames from Empty Table
How to get field names from empty table by using SELECT statement;
-
-
-
What should be the return type for a cursor variable.Can we use a scalar data type as return type?
The return type for a cursor must be a record type.It can be declared explicitly as a user-defined or %ROWTYPE can be used. eg TYPE t_studentsref IS REF CURSOR RETURN students%ROWTYPE
-
Establishing many to many relationship in SQL
How will you establish many to many relationship in SQL?Ramco Systems dt. 02 Feb' 2008
-
What is a deadlock?
There is a table with Pluks('plk') and Zinks ('zin'). Each Pluk onlyresides on a single Zink and each Zink may contain multiple Pluks. Howdo you find how many Pluks are on each and every Zink? Please provide SQL.What is a deadlock?
-
-
-
Export data from SQL to Excel
How to export data from a SQL table to MS Excel?
-
-
-
Security for SQL Queries?
Can you provide any security for SQL queries? If Yes, How?
-
-
Lock Row of a Table using SQL
How to lock a particular row of a table using SQL?
-
Find all tables in a database
How to find all the tables existing in a database?
-
Alias in Joins
Why do we use aliases during joining two tables?
Oracle SQL Interview Questions
Ans