you are provided with the single table having say 4 col ie
fname lname age city , now the all records with displying of
only fname and lname is required but in this format say my
name is abhay khanna it will come like this
abhay-khanna
rahul-roy
gaurav-singh
the above format is required
Answers were Sorted based on User's Feedback
Answer / monal
TRY THIS:
SELECT FIRSTNAME +'-'+LASTNAME FROM 'TABLENAME'
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / sudhakar
use replace function
select replace(a,' ','-') from sub_string
| Is This Answer Correct ? | 1 Yes | 1 No |
How do you size a resultset?
How to enable tcp/ip protocol on a sql server?
What is difference between count (*) and count 1?
what is Full Text Search ?
If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?
how do u do Performance tunning ?
1 Answers Infodat Technologies, Satyam,
what is difference between Enterprise Manager and Query Analyer
Explain microsoft sql server functions?
What is difference between after and before?
Does partitioning improve performance?
Ek lifafa 10 noto se bhara hai usme 2 or 5 ke note nahi hai aur usme total 50Rs hai, to batao lifafe me kon se not kitne hia it’s a challenge thank’s
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?
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)