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
what is bcp? When does it used? : Sql dba
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
Can we use distinct and group by together?
Can we rollback truncate?
define sql insert statement ? : Sql dba
How do I remove duplicates in two columns?
what are all the common sql function? : Sql dba
what is dbms? : Sql dba
What is the best sql course?
what are the advantages of sql ? : Sql dba
Does group by remove duplicates?
Is inner join faster than left join?
What is the current version of sql?
how to use regular expression in pattern match conditions? : Sql dba
what is sql server agent? : Sql dba