1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
grin007 [14]
3 years ago
8

Write the SQL code required to list the employee number, last name, first name, and middle initial of all employees whose last n

ames start with Smith. In other words, the rows for both Smith and Smithfield should be included in the listing. Sort the results by employee number. Assume case sensitivity.
Computers and Technology
1 answer:
AnnyKZ [126]3 years ago
8 0

Answer:

The SQL Code to this question can be given as:

Assume that

employee number= EMP_NUMBER //employee number

last name=EMP_L_NAME //employee last name

first name=EMP_F_NAME //employee first name

middle initial=EMP_M_INITIAL //middle initial

employee =EMP //table name

Code:

SELECT EMP_NUMBER ,EMP_L_NAME,EMP_F_NAME,EMP_M_INITIAL

FROM EMP WHERE EMP_L_NAME LIKE '%Smith%'

ORDER BY EMP_NUMBER

Explanation:

In the above SQL(Structure Query Language). It is used to communicate to the database in the form of a query. In the database, there is a table that is an employee(EMP).In this table there are employee number(EMP_NUMBER), last name(EMP_L_NAME) ,first number(EMP_F_NAME) and middle initial(EMP_M_INITIAL) columns. In the above code firstly we use the select command. This command used to return a set of records from the table. This command is part of DML(Data Manipulation Language). In the select command, we select the column that's data we want. then we define the table name where data stored. Then we apply condition by using where clause in that clause we use (%) sign for search data and use the order by clause for show the data into the order of employee number(ascending order).

You might be interested in
Computer design replaced ______________
photoshop1234 [79]
The answer is c.-architectural talent and an eye for design.
4 0
4 years ago
PLEASE HELP
Zinaida [17]

Answer:

B from you search question carefully and identify the key word

Explanation:

3 0
4 years ago
Read 2 more answers
Read two numbers from user input. Then, print the sum of those numbers. Hint - Copy/paste the following code, then just type cod
Dmitriy789 [7]

Answer:

The full program is:

<em>num1 = int(input()) </em>

<em>num2 = int(input()) </em>

<em>print(num1 + num2)</em>

<em />

Explanation:

Given

<em>num1 = int(input()) </em>

<em>num2 = ?</em>

<em>print(num1 + ?)</em>

<em />

Required

Replace ? with the right codes

Line 1: The syntax is correct

Line 2: The ? should be replaced with an integer input function to get input for num2.

So, the second line would be: <em>num2 = int(input()) </em>

Line 3: The ? should be replaced with num2 in order to calculate and print the required sum.

So, the third line would be: <em>print(num1 + num2)</em>

<em />

8 0
3 years ago
Which unique address is a 128-bit address written in hexadecimal?
pentagon [3]
Every hexadecimal digit represents 4 bits, so the address has 128/4 = 32 digits.

A GUID (Globally Unique IDentifier) has 128 bits. They are usually written like this:

{38a52be4-9352-4<span>53e-af97-5c3b448652f0}.</span>

There are different types of guids, depending on how they are generated. The first digit of the third group reveals the type. In the example above it is 4. A type 4 guid is fully random (except of course for the 4).

3 0
3 years ago
In object-oriented programming, the object encapsulates both the data and the functions that operate on the data.
vovikov84 [41]

true, it is responsible for the management, scheduling, and coordination of task

7 0
4 years ago
Other questions:
  • Which of the following is least likely checked by the comprehensive component monitor?
    7·1 answer
  • What is virtual memory?
    11·1 answer
  • What is one thing the ADDIE model does NOT account for?
    14·1 answer
  • What is wrong with the following declaration? How should it be fixed?
    11·1 answer
  • Assume TCP is operating in steady state congestion avoidance phase (no slow start) and the maximum congestion window size is 220
    8·1 answer
  • Visual-verbal synergy has nothing to do with text, but solely with images used in a design.
    9·1 answer
  • PowerPoint:
    7·2 answers
  • What has happened (or is still happening) to make this speech occur? armageddon
    15·1 answer
  • What are some other ways to program a robot to navigate a complicated environment other than straight paths and right angle (90
    8·2 answers
  • What are building blocks? Select three options.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!