You need to design a student registration database that cont

题目
单选题
You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRADES table stores information about the student's grades. Both of the tables have a column named STUDENT_ID. The STUDENT_ID column in the STUDENTS table is a primary key. You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the foreign key?()
A

CREATE TABLE student_grades (student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk REFERENCES (student_id) FOREIGN KEY student (student_id));

B

CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));

C

CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT FOREIGN KEY (student_id) REFERENCES student (student_id));

D

CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You plan to use static database registration for a new listener when you create it.What could be the two reasons for this?()

  • A、More than one database is to be registered with the listener.
  • B、The users will connect the database by using the host naming method.
  • C、The Oracle Enterprise Manager is to be used to monitor an Oracle9i database.
  • D、The database that is to be registered with the listener is configured in shared server mode.
  • E、The listener is not configured on the default port of 1521 and the instance is not configured to register with a nondefault port.

正确答案:C,E

第2题:

You need to design a configuration for Exchange Server storage that meets the business and technical requirements. What should you do?()

  • A、Create a single storage group. Create one database for all users
  • B、Create two storage groups. In each storage group, create one database. Place mailboxes for remote users in one storage group database, and place all other mailboxes in the other storage group database
  • C、Create two storage groups. In each storage group, create one database. Place executive mailboxes in one storage group database, and place all other mailboxes in the other storage group database
  • D、Create two storage groups. In one storage group, create a database, and place all mailboxes for remote users and executives in the database. In the other storage group, create a database for all other mailboxes

正确答案:C

第3题:

You are developing WPF application for managing student information... btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml properties : FirstName and LastName. You create the following code segment in the constructor of...The DataGrid control displays the list of students unsorted.You need to ensure that the list of students is sorted by last name.Which code segment should you add to the click event handler of the Button control?()

A.

B.

C.

D.


参考答案:B

第4题:

You are using Oracle Database 10g. Which statement regarding an incomplete recovery is true?()

  • A、 You do not need to restore all the data files.
  • B、 You do not need to open the database with the RESETLOGS operation
  • C、 You do not need to perform a full backup after the RESETLOGS operation.
  • D、 You do not need to recover all the data files to the same system change number (SCN).

正确答案:C

第5题:

You executed the STARTUP MOUNT command to start your database. For which database operation do you need to start the database in the MOUNT state?()

  • A、renaming the control files
  • B、dropping a user in your database
  • C、enabling or disabling redo log archiving
  • D、dropping a tablespace in your database
  • E、re-creating the control files, after you lost all the control files in your database

正确答案:C

第6题:

You need to design the retrieval of advertising statistics without compromising security. What should you do?()

  • A、Design a Notification Services solution that sends the advertising statistics to specified subscribers by e-mail.
  • B、Design a SQL Server Web service that runs a stored procedure to return the statistics on a call from the advertisers application.
  • C、Design a Database Mail solution that sends the advertising statistics to e-mail addresses that are specified in a table.
  • D、Design a stored procedure to return the statistics on a call from the advertisers application.
  • E、Design a user-defined function to return the statistics on a call from the advertisers application.

正确答案:B

第7题:

Your database runs in NOARCHIVELOG mode, and is backed up every night using RMAN scripts. However, last night your assistant DBA performed a manual operating system backup, instead of running the scripts. Today your database crashed and you now want to use the backups from last night. What do you need todo?()

  • A、You need to perform the restore and recover operations manually, because the backup was made manually. 
  • B、First you need to resynchronize the catalog with the control file, and then you can use RMAN to recover the database. 
  • C、First you need to add the backup to the catalog using the CATALOG command, and then you can use RMAN to recover the database. 
  • D、You can just use RMAN and recover the database, because RMAN automatically updates the catalog with the backup information. 

正确答案:C

第8题:

Redo log files are multiplexed in your database. The disk in which you have one of the redo log members is highly fragmented. In the process of defragmentation you lose the redo log member, which is not a member of the current group. How would you recover from the loss of the redo log member?()

  • A、SMON would automatically restore the lost file.
  • B、You would need to restore the whole database from the last backup.
  • C、You would need to restore the file from the last full database backup.
  • D、You would need to use flashback technology to restore the lost redo log member.
  • E、You would need to use Recovery Manager (RMAN) to restore the lost redo log member.
  • F、You would need to restore the missing log file by copying one of the remaining files from the same group.

正确答案:F

第9题:

You have lost all your database control files. To recover them, you are going to use the results of the alter database backup controlfile to trace command. Your datafiles and your online redo logs are all intact.  Which of the following is true regarding your recovery?()  

  • A、 You will need to open the database with the resetlogs command.
  • B、 All you need to do is execute the trace file from SQL*Plus and it will perform the recovery for you.
  • C、 You will use the resetlogs version of the create controlfile command.
  • D、 You will use the noresetlogs version of the create controlfile command.
  • E、 You will use the trace file to create a backup control file, and then you will recover the database with the recover database using backup controlfile command

正确答案:D

第10题:

You administer a SQL Server 2008 instance. You plan to deploy a new database to the instance. The database will be subject to frequent inserts and updates. The database will have multiple schemas. One of the schemas will contain a large amount of read-only reference data. You need to design the physical database structure for optimal backup performance. What should you do?() 

  • A、Create the database by using a single data file and a single log file.
  • B、Create the database by using a single data file and multiple log files.
  • C、Create the database by using a single log file and multiple filegroups.
  • D、Create the database by using a single log file and a filegroup that has multiple data files.

正确答案:C

更多相关问题