My Potpourri

来源: BlogBus 原始链接: http://www.blogbus.com:80/blogbus/blog/index.php?blogid=32049&pg=7&cat= 存档链接: https://web.archive.org/web/20041224145650id_/http://www.blogbus.com:80/blogbus/blog/index.php?blogid=32049&pg=7&cat=


My Potpourri 杂思杂感杂言 分页: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 最后页 数据库复习答案 3c -[PC oriented] 时间:2004-11-24 23:54 从blog上消失了几天,在准备数据库的期末考试哩,哇哈哈。昨天遭到鄙视,因为还在复习最基础的select语句,嘻嘻,今天也是啊,把课件3c的练习都做了一遍。过一遍,心理踏实点。select得好恶心了,没什么心情写博客,就干脆把习题的题目加答案放上来吧,当做灌水了。 其实数据库里查询语句select虽然简单,里面也挺多机关的,keke,昨天鄙视偶的那位同学现在正在为下列其中某题头疼中,嘻嘻,就不告诉他答案,活活,让他再鄙视。。哦~~也! For each employee display the employee name and calculate the number of months between today and the date the employee was hired. Label the column MONTHS_WORKED. Order your results by the number of months employed. Round the number of months up to the closed whole number. select ename,round(months_between(sysdate,hiredate))months_worked from emp order by months_between(sysdate,hiredate) / Write a query that produces the following for each employee: earns <$ salary> monthly but wants <$ 3 times salary> Label the column Dream Salaries. select ename||'earns'||'$'||sal ||'monthly but wants'||sal3 AS "Dream Salaries" from emp / Create a query to display name and salary for all employees. Format the salary to be 15 characters long, left-padded with $. Label the column SALARY. select ename,to_char(sal,'$999.999999999999')Salary from emp / Write a query that will display the employee’s name with the first letter capitalized and all other letters lowercase, and the length of their name, for all employees whose name starts with J, A or M. Give each column an appropriate label. select initcap(ename),length(ename) from emp where ename like 'A%' or ename like 'J%' or ename like 'M%' / Create a query that will display the employee name and commission amount. If the employee does not earn commission, put “No Commission”. Label the column COMM. select ename,nvl(to_char(comm),'No Commission')comm from emp / Create a query that display the employee’s names and indicates the amount of their salaries through asterisks (). Each asterisk signifies a hundred dollars. Sort the data in descending order of salary. Label the column EMPLOYEE_AND_THEIR_SALARIES. KING ************************* FORD **************** SCOTT ********** select ename,lpad(sal,100,'*')employee_and_their_salaries from emp order by sal desc / Display the name, hire date and day of the week on which the employee started. Label the column DAY. Order the results by the day of the week starting with Monday. select ename,hiredate,to_char(hiredate,'day')day from emp order by to_char(hiredate-1,'d') / yolkyoghourt 发表于 23:54 | 阅读全文 | 评论(0) | 引用Trackback(0) | 编辑 Garfield -[电影log] 时间:2004-11-21 23:44 本周电影没有因为回家而落下,嘻嘻,看的是garfield。这只超级懒惰,自私,肥胖,可爱的搞笑猫猫。推荐度有四颗星星,是最近看的最棒的电影。情节老套,和精灵鼠小弟本质差不多。不过garfield就是garfield,相比鼠小弟,他大大的脸庞给了导演做文章的机会。 喜欢这只猫, 因为他自私,当happy chappman要对小狗odie处以刑罚时,他很愤愤,因为nobody can do that to my dog, except me.这样的自私很可爱. 因为他坦率,当被animal control人员关进监管所里,他向阿猫阿狗阐述他留下来的理由时,他说,i know it's ridiculous to rescue a dog, but he is my friend, and you find him define you in some funny ways. 因为他狡猾,当他想喝到邻居放在高高的窗台的牛奶时,他以宇宙飞行为理由欺骗邻居猫猫上了他自制的水桶杠杆为他汲取牛奶. 因为他臭屁,在诊所里,他要求兽医为他按摩,为他整理一个新发型.他一直指望能受到明星一般的待遇. 因为他随时随地,时刻准备着惹是生非.哈哈,如果这也能成为喜欢的理由. 丰富的表情让人乐不可支,还有那对大大的极度富有表现力的眼睛,一瞪一瞪的,和美国人有着一样夸张的表情。最爱的就是garfield那段街舞,哈哈。 yolkyoghourt 发表于 23:44 | 阅读全文 | 评论(0) | 引用Trackback(0) | 编辑 back from home -[日历爪印] 时间:2004-11-21 23:12 自从车站搬到松柏,宿舍搬到乡下增错案,回家成了件麻烦的事情,单程就要3小时,相当于从浙大飞到厦大宿舍的时间。 回来下了决心,终于把那重达一斤的小被子换成冬天的六斤的棉被,嘻嘻,这下不会冻到小猪脚了。麻利的顺便整理衣橱。里头居然跑出小强,也是的,可怜见的,刚溜出来就被眼明脚快的无敌舍长剁成小强泥。受到派遣,我负责小强后事料理工作。sigh。明天要去超市搬些樟脑丸了,衣橱里养小强总是恶恶的。只是也很憎恶樟脑丸的味道,试想,一个人走在路上,衣服飘着樟脑丸的味道,很恶心吧????????? 哎,一回来就象被催命一般被发配了任务55555悲惨的一周就此开始。恩,开始干活了!新的一周,振作起来! btw,真是奇怪死了,难道出国也是传染病?咋米身边要出国的同学越来越多呢?有理想总是好的,只是如果盲目跟风,这个投资也许就是错的了。 yolkyoghourt 发表于 23:12 | 阅读全文 | 评论(2) | 引用Trackback(0) | 编辑 开心开心 -[日历爪印] 时间:2004-11-19 00:20 跑到教务处领取了口语证书,嘻嘻,果然是A+,放心了。之前证书没到手,只在etang上查到成绩总觉得不可靠,因为candy汇报浙大无A+的案例。偶这土人也就看到黄大仙同志得过此等级,并把此作为奋斗目标(很假,因为根本没有准备,谈不上奋斗)。本来和candy说好在杭州期间要合练一下的,结果,恩,唔,基本上是不可能的,时间都给玩没了,俩中国人讲英语也是挺奇怪的,算算去。一直到了下午要考试,当天上午才大概知道考试模式。进去以后更是混蒙蒙的,题目还是个很让我郁闷的social responsibility。后面更让我郁闷的是要看图说话,我最不擅长的一类题目。叽里咕噜对着跳眉毛的打分老师微笑着哗啦一遍被扔出考室后就琢磨着是不是该再交50元来了我A+的梦想。哈哈。节约了成本,直接达到利润目标。every dog has its day! 另外一个惊喜来自电台。本想就这么隐退了,却收到了学校宣传部发的电台优秀编辑的证书,哇哈哈。虽然外面看来是做播音,总觉得编辑的技术含量还是高点,恩恩。 明天可以回家了,终于。。呼啦啦。 yolkyoghourt 发表于 00:20 | 阅读全文 | 评论(3) | 引用Trackback(0) | 编辑 水木歌友会 -[牢骚成堆] 时间:2004-11-17 20:53 昨夜水木又来了,是为了歌友会。这次歌友会主要目的是宣传新专辑70.80,地点选在了芙蓉湖边的圆形舞台。这次,有人为了看到水木上树了。一个树杈上撑着三个兄弟。舞台前一天就开始布置了,以往一直在bbs抱怨周末晚会噪音的f2的兄弟们这次占据了地利之势。f2四楼的阳台应该是最佳观测点,居高临下,颇有国庆阅兵的风范了。宣传画ps得很有美感,恩,指和真人对比的情况下。 晚会在8:45左右开始。很冷的天,隔天又要考试,我就在宿舍待着。确信歌友会后一定有人拍照,然后放到bbs,也一定有人会把歌友会感受贴出来。上周已经体会过的疯狂,这周该歇歇了。 查了资料,才知道主唱卢庚戌估摸着要有30了。95年离开清华,现在快十年了。不知他在这样一个寒冷的南方的夜晚,在这个面朝大海,春暖花开的校园里,感受到了学生时代那份纯真和激情了吗?这里生活着的是同样的一群捧着赤子之心的人们。 歌友会的最后一首歌还是《一生有你》。上周建南礼堂千人合唱的疯狂还历历在目。如果这次歌友会又去了。我想自己会忍不住那份煽情,眼泪会是不可避免的结果。我害怕流泪,尤其在最煽情的时刻,害怕泪决堤,害怕伤感感染了周围同样伤感的人们,从而导致一个恶化的循环。 热闹终会散场。歌友会过后,被践踏了的芙蓉湖边的草儿花儿估计也真的是7080了。一片凄然,能与之媲美的就每年毕业前夕,夹着f5和f6间的小道的凤凰树上挂满了磁带,小道上铺着纸屑的那一天的景象了。这是这里的人们极端宣泄的一种方式,带着暴躁,不安分,还有即将离去的不满,还有感伤。又扯远了~~~~~~ 真是下笔千字,离题千里。。 yolkyoghourt 发表于 20:53 | 阅读全文 | 评论(0) | 引用Trackback(0) | 编辑 分页: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] 最后页 分类 首页 牢骚成堆 小琦厨房 电影log 日历爪印 突发奇想 MM心境 PC oriented Traveling 日历 2004 年 12 月 Sun Mon Tue Wen Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 最后更新 平安夜 收到圣诞礼物咯 明天冬至 Sleeping Beauty 本周电影--《回到未来1》 versace风格计算器界面 心理测试 周末就这么没了 看了仨电影 Accident of the Year 最新评论 Arael : 马哲资料在哪儿?. daisy : 你终于还是来灌水. verale : 偶今天在东苑吃汤. daisy : 本来所谓的星座啦. ruifipieggio : 太假了,这样的照. ruifipieggio : 这样的测试也能想. daisy : 在网上看到,觉得. 冰雪蓝 : 有没有电话或QQ daisy : 恩,那只能证明这. Arael : 呵呵,我也选的71. 存档 我的链接