Yam Code
Sign up
Login
New paste
Home
Trending
Archive
English
English
Tiếng Việt
भारत
Sign up
Login
New Paste
Browse
Barems: a - 10%, b - 10%, c - 10%, d - 10%, e - 15%, f - 15%, g - 15%, h - 15% Objectives: H5SD - SQL skills Problem Descriptions: In the database design for the Employee Management System of FSOFT Company, given tables of the application with below: EMPLOYEE: EmpNo: employee code, primary key. EmpName: employee name. BirthDay: birth day of the employee. Email: email of the employee. Make sure that the database will not allow the value for Email to be inserted into a new row if that value has already been used in another row. DeptNo: department code of the employee. MgrNo: manager code, not null (default values to 0). StartDate: starting date of work. Salary: salary of the employee, data type is money (VND). Level: level of the employee (accepts value range from 1 to 7 only). Status: status of the employee (0: working, 1: unpaid leave, 2: out, default values to 0). Note: some note about employee, free text. EMP_SKILL: SkillNo: skill code, foreign key. EmpNo: employee code, foreign key. SkillLevel: skill level of the employee (accepts value range from 1 to 3 only). RegDate: registration date. Description: skill description, free text. Primary key (SkillNo, EmpNo) SKILL: SkillNo: skill code, primary key, auto increment. SkillName: name of skill. Note: some note about skill, free text. DEPARTMENT: DeptNo: department code, primary key, auto increment. DeptName: department name. Note: some note about department, free text. Questions: 1.Create the tables with the most appropriate/economic field/column constraints & types. Add at least 8 records into each created tables. 2.Specify name, email and department name of the employees that have been working at least six months. 3.Specify the names of the employees whore have either ‘C++’ or ‘.NET’ skills. 4.List all employee names, manager names, manager emails of those employees. 5.Specify the departments which have >=2 employees, print out the list of departments’ employees right after each department. 6.List all name, email and skill number of the employees and sort ascending order by employee’s name. 7.Use SUB-QUERY technique to list out the different employees (include name, email, birthday) who are working and have multiple skills. 8.Create a view to list all employees are working (include: name of employee and skill name, department name) -- THE END --
Paste Settings
Paste Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax Highlighting :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Paste Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create New Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English
Tiếng Việt
भारत