select 1,col1,col2 from table1. output?
Answers were Sorted based on User's Feedback
Answer / selvaraj anna university coe
SQL> SELECT 1,emp_no,emp_name FROM emp;
1 EMP_NO EMP_NAME
--------- --------- -------------------------
1 100 SELVA
1 101 RAJ
1 102 A S KALA
1 103 JESLIN FANTA MALAR
1 104 ANITA
1 105 MURUGU
1 106 SRIVATSAN
1 107 SARABOOT
1 108 KARTHI SIR
1 109 SUDHA
1 110 MERCHI
1 111 SAVI
12 rows selected.
| Is This Answer Correct ? | 28 Yes | 1 No |
Answer / chakri
Hi friend,
In the above Select statement 1 is constant so it will
display with respect to the other columns infromation
Result for ur query:
column_heading no_col col2_2 col3_3
1 name1 3000
1 name2 2000
in this way it will display the result.
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / pandian s
(No column Name) Col1 Col2
1 xx xx
1 xx xx
Note: 'xx' is nothing but Columns' actual data.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / sheikbachan
hi I'M sheikbachan
select 1 col1,col2 from table
output
col1 col2
1 a
1 b
1 c
1 d
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sharmila ramuka
There will b error.Coz if we write
select 1, col2 from table1;
then its correct butthis ill gv n error.
| Is This Answer Correct ? | 2 Yes | 14 No |
What is the importance of sqlcode and sqlerrm?
What is the use of & in pl sql?
What is over () in sql?
What language is oracle sql developer?
What is the difference between function, procedure and package in pl/sql?
What are the sql versions?
PL/SQL allocates memory for the variable's at runtime or at compile time
Can we use threading in pl/sql?
Table Student has 3 columns,Student_id,Student_Name & Course_Id. Table Course has 2 columns, Course_Id & Course_Name.Write a query to listdown all the Courses and number of student in each course.
Its possible to add more than one primary key for the table
What is Referential Integrity?
What is set serveroutput on in pl sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)