Retrieve the last two characters from the employees

Assignment Help Database Management System
Reference no: EM133569909

Task 1: Using Northwind Database, write SQL statements for the following data retrieval operations.
Note: You may need to refer to the schema for the exact field names while framing the queries to the following questions. While framing the question, the words ‘code', ‘number' or ‘ID' may have been synonymously used. For instance, ‘Customer Number' when used may refer to a field called CustomerID. Similarly, wherever the word ‘name' is used, appropriate interpretation may be needed based on the schema - for instance if ‘customer name' is required to be printed, you may need to retrieve CompanyName field from the Customers Table; likewise, when ‘employee name' is required (without any further qualification, you may retrieve the lastname field of Employees table.

Excercise

Retrieve the first three letters of the employees' last names.

Retrieve the last two characters from the employees' last names.

Retrieve five characters from the employees' last names, starting at the second character.

Retrieve the firstname and lastname of employee. Output should be in the form of full name (firstname + "" + lastname) having first character in upper case for both firstname and lastname, and other characters in lower case.

Retrieve maximum, minimum and average of unitprice column from order details table.

Check whether each value in the PostalCode column of the Customers table are numeric or not.

Display the Day, Month and Year separetly of today's date.

Display day of year, day, week, weekday, hours, minutes and seconds of current day.

Display the dates respectively after adding 4 years, 2 months and 25 days to the current.

Display the day differences from Orders table between following:

a. Order date and required date.
b. Order date and shipped date.
c. Shipped date and required date.

 

Reference no: EM133569909

Questions Cloud

What might be the consequences for the cell : Imagine you are a cell biologist. How and why would you use a microscope to study cellular structures?
Develop better understanding on evidence : GDECE104 Professional Teaching Practice, Southern Cross Education Institute - Critical Reflection of Professional Practice
What two types of fluids filter the excretory organs of worm : What two types of fluids filter the excretory organs of the worm?
Is it ethical to use animals in scientific experiments : The spotlight shines brightly on the stage, casting a challenging question: Is it ethical to use animals in scientific experiments?
Retrieve the last two characters from the employees : Retrieve the last two characters from the employees' last names. Retrieve five characters from the employees' last names, starting at the second character
What tissue protects the human trachea : What tissue protects the human trachea and bronchial trees from collapsing during the pressure changes of breathing? Why don't the bronchioles have this?
Find out all the orders placed by all the customers : Retrieve all details of Orders administered by persons who hold the designation Sales Representative and shipped by United Package
Display the list of products that should be re-order : List out only 5 percentage of total records from customers table. Retrieve the Customer IDs and contact names of all customers who have yet to order
List all details of all shippers that the company is dealing : List all details of all Shippers that the company is dealing with. List the all employees - you need to display only the details of their First Name

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd