Search Header Logo

Hệ quản trị csdl

Authored by Devil Gamer

Professional Development

University

Used 3+ times

Hệ quản trị csdl
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

66 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thu hồi tất cả các quyền của User Trung trong bảng LUONG câu lệnh nào sau đây đúng

Revoke all LUONG from Trung
Revoke all on luong to Trung
Grant all on LUONG to Trung
Tất cả đều sai

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh truy vấn sau dùng để làm gì

SELECT hodem,ten,gioitinh,

YEAR(GETDATE())-YEAR(ngaysinh) AS tuoi

FROM sinhvien

WHERE ten='Bình'

ORDER BY 4

Hiển thị Hotem, ten, giới tính và tuổi, trong đó sắp xếp tên theo thứ tự abc

Hiển thị Hotem, ten, giới tính và tuổi, trong đó sắp xếp tuổi theo thứ tự giảm dần

Hiển thị Hotem, ten, giới tính và tuổi, trong đó sắp xếp cả 4 cột theo thứ tự từ trái sang phải

Hiển thị Hotem, ten, giới tính và tuổi, trong đó sắp xếp cột tuổi theo thứ tự từ nhỏ đến lớn

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dịch và chạy chương trình sau với tham số 2 và 3 cho kết quả gi.

create function Tim_Max(@a int,@b int)

returns int

as

begin

if @a>@b

 return @a

else return @b

end

0

2

3

Lỗi

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc nào sau đây đúng khi tạo mới một hàm

create function tên_hàm ([danh_sách_tham_số])

returns (kiểu_trả_về_của_hàm)

as

begin

các_câu_lệnh_của_hàm

return

end

create function tên_hàm ([danh_sách_tham_số])

return (kiểu_trả_về_của_hàm)

as

begin

các_câu_lệnh_của_hàm

return

end

create function tên_hàm [danh_sách_tham_số]

returns (kiểu_trả_về_của_hàm)

as

begin

các_câu_lệnh_của_hàm

return

end

create function tên_hàm ([danh_sách_tham_số])

returns (kiểu_trả_về_của_hàm)

các_câu_lệnh_của_hàm

return

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc nào sau đây đúng khi tạo mới trigger

create trigger < tên trigger> on < bảng dữ liệu>

with encryption

for [insert, delete, update]

as

< các lệnh sql>

create trigger < tên trigger> for < bảng dữ liệu>

with encryption

on [insert, delete, update]

as

< các lệnh sql>

create trigger < tên trigger>

with encryption

on [insert, delete, update]

as

< các lệnh sql>

create trigger < tên trigger> for < bảng dữ liệu>

with encryption

on [insert, delete]

as

< các lệnh sql>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dich và chạy chương trình sau cho kết quả là gì

create function AA

returns int

as

begin

return 4

end

4

AA

0

Lỗi

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xác định quý của ngày tháng năm hiện tại câu lệnh nào sau đây đúng

print datepart(quarter,getdate())
print datepart(getdate(),quarter)
print datediff(getdate(),quarter)
print datediff (quarter,getdate())

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?