SQL commands taught on 7th August 2010 Class
4 posters
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 404
Page 1 of 1
SQL commands taught on 7th August 2010 Class
Well, here this goes:
Next week, it will be your turn to post this sql commands. How? If you are using toad, simply press control + s to save the used sql commands. It will give you a text file. Open it, select all, press ctrl+c and all of them will be copied.
yeah yeah.. I am being sarcastic. But if you did know... I wonder why no one used this till now.
paste bin version:
- Code:
select lpad(salary,10,'*') from hr.employees;
select round(102.926,2) from dual;
select trunc(45.929,2) from dual;
select round(127.49, -1) from dual;
select round(123.49, -1) from dual;
select trunc(126.49, -1) from dual;
select round(187.49, -2) from dual;
select round(550.49, -2) from dual;
select round(500.49, -2) from dual;
select trunc(160.49, -2) from dual;
select sysdate from dual
select last_name, (SYSDATE-hire_date)/7 as weeks
from hr.employees;
select sysdate from dual;
select to_char(sysdate,'DD-Month-RR') from dual;
select to_char(sysdate,'DD-Month-rr') from dual;
select to_char(sysdate-2, 'D Month-RR') from dual;
select months_between('01-oct-2010',sysdate) from dual;
select to_char(next_day('01-aug-10','FRIDAY'),'DD-Month-RR') from dual;
select last_day('01-Feb-08') from dual;
select to_char(Last_day('07-aug-10'),'MOnth') from dual;
select to_char(sysdate,'DD-Month-RRRR');
select sysdate from dual;
select to_char(round(sysdate, 'month'),'DDth-Month-RRRR') from dual;
select to_char(sysdate-172, 'dd-month-RRRR') from dual
select round(sysdate-172, 'Month') from dual
select round (sysdate-38,'year') from dual;
select round (sysdate,'year') from dual;
select round(to_char('14-Feb-2010', 'dd-mon-RRRR'),'month') from dual
select trunc(sysdate, 'year') from dual
select trunc(sysdate, 'month') from dual
select to_char(sysdate,'year') from dual;
select to_char(sysdate,'RRRR') from dual;
select to_char(sysdate,'RR') from dual;
select to_char(12345, '99999999') from dual;
select to_char(12345, '099999999') from dual;
select to_char(12345, '99.999') from dual;
select to_char(-12345, '99999999PR') from dual;
select to_char(12345, '99999999PR') from dual;
Next week, it will be your turn to post this sql commands. How? If you are using toad, simply press control + s to save the used sql commands. It will give you a text file. Open it, select all, press ctrl+c and all of them will be copied.
yeah yeah.. I am being sarcastic. But if you did know... I wonder why no one used this till now.
paste bin version:
Last edited by BIT0122-Amit on Fri Oct 08, 2010 9:25 pm; edited 1 time in total
Re: SQL commands taught on 7th August 2010 Class
bit0112-rokon wrote:is it possible to elaborate all the commands..?
BIT0115-Efat- Service Release
- Course(s) :
- BIT
Blood Group : O+
Posts : 779
Points : 1120
Re: SQL commands taught on 7th August 2010 Class
It is suggested to read the Oracle SQL plus book provided by ripon sir. He is following that book. And it is quite descriptive.
Similar topics
» Holiday : About August 4 2010 Class
» Class lectures and commands
» Various commands for DBMS and MySQL
» URGENT NOTICE: CLASS ON 09/01/2010
» MYSQL commands Collection
» Class lectures and commands
» Various commands for DBMS and MySQL
» URGENT NOTICE: CLASS ON 09/01/2010
» MYSQL commands Collection
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 404
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford