wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CCL Coding Standards

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

What does the Selected Fields expression use to convert a code value into a textual value in the output display?

a)

UAR_GET_CODE_DISPLAY

b)

POSITION_CD

c)

Code Value Displays dialog box

d)
  • Query Builder

2.

A field that indicates when an order was placed would most likely be named ORIG_ORDER________.

a)

_DATE

b)

_TIME

c)

_TIMESTAMP

d)

_ACTIVE

e)

_DT_TM

3.

A field that stores the unique primary identifier of the PERSON table is most likely named PERSON________.

a)

_KEY

b)

_ID

c)

_ACTIVE

d)

_IND

4.

What is the default directory in Discern Explorer where all files are placed unless specified otherwise?

a)

CCLUSERDIR

b)

CCLEXPLORER

c)

USERFILES

d)

C:\

5.

What keyboard shortcut can you use to execute a query after placing the focus of your cursor on the word SELECT from the query?

a)

CTRL + Q

b)

CTRL + S

c)

ALT + Q

d)
  • SHIFT + Q

6.

How can you select all fields from a table into your query using the Query Builder?

a)

By using the MAXREC control option

b)

By clicking the 'Run Query' button

c)

By clicking 'Select All Fields'

d)
  • By typing CTRL + Q

7.

What is the purpose of using an alias for a table when creating a query in a database?

a)

To limit the amount of data returned

b)

To define an abbreviation for the table, making it easier to reference fields from that table

c)

To select all fields from the table into the query

d)
  • To execute the query faster

8.

Which statement is part of the basic SELECT statement?

a)

JOIN

b)

ORDER BY

c)

GROUP BY

d)

FROM

9.

What is the maximum number of rows you will get when you run this query:

SELECT *

FROM PERSON P

WHERE P.PERSON_ID = 744115.00

WITH MAXREC = 50, TIME = 30, NOCOUNTER, SEPARATOR=" ", FORMAT

a)

50 rows

b)

0 rows

c)

1 row

d)
  • All rows in the table

e)

744115 rows

10.

You are writing a query that includes person information. You need to write an expression that will display the first name, a space, and then the last name. Which of the following will correctly format the name?

a)

Name=CONCAT(

P.NAME_FIRST,

" ",

P.NAME_LAST )

b)

Name=concat(

trim(P.NAME_FIRST),

" ",

TRIM(P.NAME_LAST) )

c)

Name = P.NAME_FIRST + P.NAME_LAST

d)

BUILD(

P.NAME_FIRST,

" ",

P.NAME_LAST )

11.

You would like to see Orders information listed in the output with the last orders registered in the system listed first. Which syntax will meet this requirement?

a)

SELECT
E.ENCNTR_ID,

E.REG_DT_TM ";;q"

FROM ENCOUNTER E

WHERE E.ACTIVE_IND = 1

ORDER BY E.REG_DT_TM DESC

b)

SELECT

O.ORDER_ID,

O.ORIG_DT_TM,

FROM ORDERS O

ORDER BY O.UPDT_DT_TM ASC

c)

SELECT

O.ORDER_ID,

O.orig_order_dt_tm

FROM ORDERS O

ORDER BY O.updt_dt_tm DESC

d)

SELECT

O.ORDER_ID,

O.orig_order_dt_tm

FROM ORDERS O

ORDER BY O.updt_dt_tm