找 java ????!!!!   灭意思?耍我呀?我是要20到面是题目呢!我这里列出来的是给个样品  呵呵 不一定就要他们

解决方案 »

  1.   

    排序一个数组
    有一个array(数组) ary,里面有numElts个数字,写个程序对它由小到大排序。比如,numElts=4, ary={4,2,6,3} 变成 ary={2,3,4,6}. 在下面写出你的代码实现这个功能(用C/C++/Php/Java…)
    通过写5个SQL句子回答下面的五个问题。参考下面的两张表CREATE TABLE District (
    idDistrict INTEGER NOT NULL,
    intZipCode INTEGER NOT NULL,
    strName VARCHAR2 ( 255 ),
    CONSTRAINT PK_District219 PRIMARY KEY (idDistrict),
    );
    CREATE TABLE Person (
    idPerson INTEGER NOT NULL,
    fidDistrict INTEGER NOT NULL,
    chrName VARCHAR2 ( 255 ) NOT NULL,
    intAge INTEGER NOT NULL,
    intSalary INTEGER NOT NULL,
    flagSendMail INTEGER NOT NULL,
    CONSTRAINT PK_Person218 PRIMARY KEY (idPerson),
    );1)  增加一个名称为”District 1”的district, , intZipCode=12345, idDistrict=12。(Add a district called “District 1” with zip code 12345 and ID 12.)2)  删除所有的在idDistinct为7的这个Distinct 内的people (人) 。(Delete all people in district with ID 7。)3)  表示所有zipCode界于99000到99100的人的名字(chrName) 和年龄(intAge)。(Print name and age of all people with zip codes between 99000 and 99100)4)  表示每一个district(区) 的人的工资总和。即:如果有50个人,位于5个district中,则只打印五行。(Print the sum of the people’s salaries by district.)5)  设置所有工资(intSalary)1000以上的人的flagSendMail为1。(Set the sendMail flag to 1 for all people with salaries over 1000.)