Lock student ID 00101 for update of major to 600. Update the row and commit it.

Use case study databases for the following queries.


```
SQL> SELECT *
2 FROM STUDENT
3 WHERE STUDENTID = '00101'
4 FOR UPDATE OF MAJORID
5 NOWAIT;

STUDE LAST FIRST STREET CITY
----- --------------- --------------- ------------------------- ---------------
ST ZIP STAR BIRTHDATE FACULTYID MAJORID PHONE
-- ----- ---- --------- ---------- ---------- ----------
00101 TYLER MICKEY 12 MORRIS AVENUE BRONX
NY 10468 SP03 18-MAR-84 555 500 7185552222


SQL> UPDATE STUDENT
2 SET MAJORID=600
3 WHERE STUDENTID='00101';

1 ROW UPDATED.

SQL> COMMIT
2 /

COMMIT COMPLETE.
```

Computer Science & Information Technology

You might also like to view...

The _____ function calculates the current date and time.?

A. ?NOW B. ?CURRENT C. ?TODAY D. ?DATE

Computer Science & Information Technology

DVDs have replaced CDs as the standard optical disc.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You can control the space between labels and controls on reports using Padding Control

a. true b. false

Computer Science & Information Technology

The IEEE ____ task group has been working on wireless QoS since May 2000.

A. 802.11e B. 802.11f C. 802.11g D. 802.11i

Computer Science & Information Technology