SQL Interview Questions4
SQL Interview Questions4
ODD : SELECT * from emp where (rowid,1) in (SELECT rowid, mod(rownum,2) from emp);
EVEN: SELECT * from emp where (rowid,0) in (SELECT rowid, mod(rownum,2) from emp);
MONTHS_BETWEEN()
How many ways u can replace query result null value with a text?
2 ways.
Using NVL () function and SET NULL text;
DELETE FROM <table_name> WHERE ROWID NOT IN (SELECT MAX (ROWID) FROM <table_name>
GROUP BY <column_name>);
Or
DELETE FROM <table_name> A WHERE ROWID > (SELECT MIN (ROWID) FROM <table_name> B WHERE
B.table_no= A.table_no);
<<Previous
Next>>
(SQL4/)
(SQL41/)
2016 baji.co.in Free
(http://api.hostinger.in/redir/159
(http://baji.co.in)
Sourceofthecontentisgatheredfrommultiplesourcesontheweb.Ownerisnotresponsibleforanyfalseorincorrectinformation,ifanycorrectionneededtothecontentreportitinthecontactus(ContactUs/)
[email protected]
http://baji.co.in/SQL5/ 1/1