Home > database > Today to interview the dba have two problem won't do
Today to interview the dba have two problem won't do
Time:09-15
have bosses give a correct answer under reference
CodePudding user response:
The first question: SELECT A. china_name, COUNT (b.o pr_state_id) AS KXJJSL The FROM Spc_room A, Rme_rack b WHERE ='170001' b.o pr_state_id AND a. is_supportide=1 AND p. osit_id=a. room_id GROUP BY A. china_name The second question: SELECT * The FROM Rme_port WHERE Super_res_id IN ( SELECT Eqp_id The FROM Rme_eqp WHERE Posit_id IN ( SELECT Room_id The FROM Spc_room WHERE A. is_supportide=1 ) )