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 to perform key word search in tables?
Can a database be shrunk to 0 bytes, if not, why?
What is a user-defined function in the sql server and what is its advantage?
How to optimize stored procedure optimization?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
What is a self join in sql server?
How to sort query output in descending order in ms sql server?
difference between Clustered index and non clustered index ?
What are the restrictions while creating batches in sql server?
Can you name a few encryption mechanisms in sql server?
What is bcp? When does it used?
how to get 25th row in any table in sqlserver can u tell me syntax
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)