Coder Social home page Coder Social logo

database-sql's Introduction

Database-SQL

This task is done by using sql query

Task Scenario

  1. Create a database named database_assignment.
  2. create a table named customers.
  3. insert the following customer data: a) First Name: Babara Last Name: MacCaffrey Date of Birth: 1986-03-28 Phone: 781-932-9754 Address: 0 Sage Terrace City: Waltham State: MA Points: 2273

b) First Name: Ines Last Name: Brushfield Date of Birth: 1986-04-13 Phone: 804-427-9456 Address: 14187 Commercial Trail City: Hampton State: VA Points: 947

c) First Name: Freddi Last Name: Boagey Date of Birth: 1985-02-07 Phone: 719-724-7869 Address: 251 Springs Junction City: Colorado Springs State: CO Points: 2967

d) First Name: Ambur Last Name: Roseburgh Date of Birth: 1974-04-14 Phone: 407-231-8017 Address: 30 Arapahoe Terrace City: Orlando State: FL Points: 457

e) First Name: Clemmie Last Name: Betchley Date of Birth: 1973-11-07 Phone: Address: 5 Spohn Circle City: Arlington State: TX Points: 3675

  1. Show only 2 members whose points are more than 1000.
  2. Find the customers whose age is from 1980 to 1990 or points less than 1000.
  3. Order the customers by points in ascending order.
  4. Find the customer whose name contains 'burgh' using a Regular Expression.
  5. Find a customer who does not have a phone number.
  6. Change the 'Date of Birth' column name to 'dob'.
  7. Find the max point holder customer name.
  8. Execute a query for the following scenario. If customers have points less than 1000, they are bronze members. If customers have points of more than 1000 and less than 2000, they are silver members. If customers have points of more than 2000 and less than 3000, they are gold members. If customers have points of more than 3000, they are platinum members.

Technology used

- Tool: xampp, SQLyog

How to Run the file

- clone the project and exract the sql file
- open xampp and connect to the server
- open SQLyog and load the sql file and execute the queries

database-sql's People

Contributors

foysal619 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.