Database - Introduction to SQL - Discussion
Discussion Forum : Introduction to SQL - General Questions (Q.No. 28)
28.
To define what columns should be displayed in an SQL SELECT statement:
Discussion:
6 comments Page 1 of 1.
Sangeeta said:
1 decade ago
Explanation please.
Srilatha said:
1 decade ago
Select ename, sal from emp where deptno=10;.
Vinay(bml) said:
1 decade ago
We use select to display the table ?
Ayub said:
1 decade ago
We use SELECT to Display the DATA of COLUMN(S) Of Table..
e.g. SELECT COLUMN1,COLUMN2,COLUMN3,.....,COLUMNn from TABLENAME;
OR
SELECT * from TABLENAME;
where * is used to show the data od ALL COLUMNS within a Table.
e.g. SELECT COLUMN1,COLUMN2,COLUMN3,.....,COLUMNn from TABLENAME;
OR
SELECT * from TABLENAME;
where * is used to show the data od ALL COLUMNS within a Table.
Sandy said:
1 decade ago
Use the following:
SELECT col_1, col_2, . . . , col_n FROM table_name;
SELECT col_1, col_2, . . . , col_n FROM table_name;
Vedanand Singh said:
8 years ago
Explain it.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers