Basic SQL Query Homework Help
1. BASIC SQL QUERY Help-
CREATE EMPLOYEE TABLE
EMP_ID |
FIRST_NAME |
LAST_NAME |
GENDER |
DEPARTMENT |
JOINING_DATE |
SALARY |
1001 |
ANDREW |
CENCINI |
MALE |
IT |
08-01-2014 |
300000 |
1002 |
STEVEN |
THROPE |
MALE |
HR |
10-02-2014 |
400000 |
1003 |
ANNE |
HELLUNG-LARSEN |
FEMALE |
FINANCE |
20-03-2014 |
500000 |
1004 |
DENE |
SENA |
FEMALE |
ACCOUNT |
30-04-2014 |
200000 |
1) Write a query for all the detail of "EMPLOYEE" table.
Query:
SELECT * FROM EMPLOYEE;
2) Write a query to get only "FIRSTNAME" column from "EMPLOYEE" table
Query:
SELECT FIRST_NAME FROM EMPLOYEE ;
3) Write a query to get FirstName in upper case as " FIRST_NAME ".
Query:
SELECT UPPER(FIRST_NAME) AS "First Name" FROM EMPLOYEE ;
4) Write a query to get FIRST_NAME in lower case as "First Name".
Query:
SELECT LOWER(FIRST_NAME) AS "First Name" FROM EMPLOYEE ;
5) Write a query for combine FIRST_NAME and LAST_NAME and display it as " FULL NAME " (also include white space between first name & last name)
Query:
SELECT FIRST_NAME +' '+ LAST_NAME AS [FULL NAME] FROM EMPLOYEE ;
6) Select EMPLOYEE detail whose name is "ANDREW"
Query:
SELECT * FROM EMPLOYEE WHERE FIRST_NAME = 'ANDREW'
7) Get all employee detail from EMPLOYEE table whose " FIRST_NAME" start with latter 'D'.
Query:
SELECT * FROM EMPLOYEE WHERE FIRST_NAME like 'D%'
8) Get all employee details from EMPLOYEE table whose " FIRST_NAME" contains 'E'
Query:
SELECT * FROM EMPLOYEE WHERE FIRST_NAME like '%E%'
9) Get all employee details from EMPLOYEE table whose " FIRST_NAME" end with 'h'
Query:
SELECT * FROM EMPLOYEE WHERE FIRST_NAME like '%W'
10) Get all employee detail from EMPLOYEE table whose " FIRST_NAME" start with any single character between 'A-N'
Query:
SELECT * FROM EMPLOYEE WHERE FIRST_NAME like '[A-N]%'
Topics in database
- MYSQL Homework Help
- SQL Homework Help
- Advance SQL Homework Help
- SQL Functions Homework Help
- Big Data Homework Help
- Complex Query In Sql Help
- Basic SQL Query Help
- Attributes in Entity Homework Help
- String Related sql Query Help
- Join Related sql Query Help
- Small Tricky sql Query Help
- Authorization: SQL Recursion Help
- Database and data science techniques Help
- Database Languages Assignment Help
- Database Design Help
- Database System Architectures Design
- Entity Relationship Model Understanding
- Higher-Level Design: UML Diagram Help
- Implementation Of Atomicity And Durability
- Object-Based Databases Homework Help
- Oracle 10g/11g
- Parallel And Distributed Databases
- Query Optimization Technique
- Relational Databases Homework Help
- Serializability And Recoverability
- SQL Join
- SQL Queries And Updates
- XML And Relational Algebra Homework Help
- XML Queries And Transformations
- Data Mining
- Oracle Data warehouse
- Relational Model Online Help
- SQL And Advanced SQL Learning Help
Testimonials
Very affordable projects!! And that to submit before deadlines. Thanks for helping me in my database project and raising my grades. I have been able to secure good marks in my internal assessment only because of you. Read More