Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to generate a salary slip like
jan 1000 1000
feb 1000 2000
...
dec 1000 12000

Answer Posted / Vijendra Sharma

Here is an example SQL query that generates a salary slip for a given employee with the specified format:nn```sqlnCREATE TABLE SalarySlip (Month VARCHAR(9), Amount INT);nnINSERT INTO SalarySlip VALUES ('Jan', 1000),n('Feb', 2000),n...n('Dec', 12000);nnSELECT CONCAT('Month: ', Month, 'nAmount: ', Amount) FROM SalarySlip;```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is bcp? When does it used? : Sql dba

1053


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2089


Can we use distinct and group by together?

1131


Can we rollback truncate?

1072


define sql insert statement ? : Sql dba

1094


How do I remove duplicates in two columns?

1178


what are all the common sql function? : Sql dba

1127


what is dbms? : Sql dba

1061


What is the best sql course?

1046


what are the advantages of sql ? : Sql dba

1138


Does group by remove duplicates?

1112


Is inner join faster than left join?

1273


What is the current version of sql?

1091


how to use regular expression in pattern match conditions? : Sql dba

1105


what is sql server agent? : Sql dba

1179