Coder Social home page Coder Social logo

grampower_assignmentsql's Introduction

Assignment 1 question:

  1. Install MySQL locally.

  2. create 2 tables in the database. user table have following fields a. id b. name c. email d. phone

employee table have following fields a. userid b. employee_number c. employee_phone d. employee_salary

Note: userid is foreign key of linked user table id.

You have to write following mysql queries:-

Q1: Insert fake data to these tables.(50 rows)

Q2: Get 10 latest rows/ (from both the tables)

Q3: Get rows where the name has "cop" in them.

Q4: Get phone of user which employee_number has value 1

Q5: Update employee_number value 1 email column.

Q6: Get employees which have the highest employee_salary.

Q7: Delete one row query.

for Assignment 1: as Assignment 1 SQL Queries/SQL exp1.sql in Github

I have Used of Microsoft SQL Server for running these queries .

I have download and install Microsoft SQL Server 2019 database and SQL Server Management Studio .

Then written and executed all 7 queries successfully .

created two tables

user table have following fields a. id b. name c. email d. phone employee table have following fields a. userid b. employee_number c. employee_phone d. employee_salary

and performed the queries . By vikash kumar (vkumarcsvlogs.com)

grampower_assignmentsql's People

Watchers

vikash kumar 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.