在SQL中检索两个表值

时间:2015-04-27 11:07:26

标签: c# sql

表r1

collegename  subject  position
coll1        english  rao1
coll1        english  rao2
coll1        english  rao3

表r2

collegename subject workload  posts
coll1       english   100      3

显示以下内容的查询是什么。

collegename   subject position  workload posts
coll1         english  rao1       100     3
coll1         english  rao2      
coll1         english  rao3

1 个答案:

答案 0 :(得分:1)

您需要的代码如下:

/* I wanted to center my loader */
            #cycle-loader {
                height:32px;
                left:50%;
                margin:-8px 0 0 -8px;
                position:absolute;
                top:50%;
                width:32px;
                z-index:999;
            }

            /*I want to avoid jumpiness as the JS loads, so I initially hide my cycle*/
            #maximage {
                display:none;/* Only use this if you fade it in again after the images load */
                position:fixed !important;
            }


        #arrow_left, #arrow_right {
                bottom:45%;
                height:67px;
                position:fixed;
                right:3%;

                width:36px;
                z-index:1000;
            }
            #arrow_left {
                left:3%;
            }

            #arrow_left:hover, #arrow_right:hover {
                bottom:45%;
            }
            #arrow_left:active, #arrow_right:active {
                bottom:45%;
            }
            a {color:#666;text-decoration:none;}
            a:hover {text-decoration:underline;}

            /*I want to style my pager*/
#cycle-nav {
    /*    float:left;*/
    margin-top: 8px;
    margin-left: 0;
    text-align: center;
}
#cycle-nav ul {
    list-style-type:none;
    width: 100%
}
#cycle-nav ul li {
/*    border:1px solid #FF8000;*/
    display: inline-block;
    margin:3px;
}

#cycle-nav ul li a {
  /*background: #057c96;*/
    background: #49BED8;

    float:left;
    height:10px;
    margin:2px;
    width:10px;


}


#cycle-nav ul li a:hover {
        background: #000;
        opacity:0.6;

}

#cycle-nav ul li.activeSlide {
   /* border:1px solid #000;*/
/*   background: #075262;*/
    }

#cycle-nav ul li.activeSlide > a {
    background: #075262;
}
#controls-wrapper { margin:0 auto; height:42px; width:100%; bottom:70px; z-index:4; background:url(../img/nav-bg.png) repeat-x; position:fixed; }

#controls { width: 50%; float: left; }
.buton-controls{
    width: 50%; 
    float: left;
    text-align: center;
}
.buton-controls > div{
    display: inline-block;
}
.button2{
    background-color: red;
    font: 14px/23px 'TitilliumText25L400wt',Arial,sans-serif;
    height: 20px;
    opacity: 0.4;
    text-align: center;
    width: 70px;
    color:#FFFFFF;
}

.button2:hover{
    background-color:#000;
    cursor:pointer;
    opacity:1 !important;
}

.button2hoverBg{
    background-color:#137087 !important;
    cursor:pointer;
    opacity:1;
}

.button3{
background-color: red;
    color:#FFFFFF;
    font: 14px/23px 'TitilliumText25L400wt',Arial,sans-serif;
    height: 20px;
    opacity: 0.4;
    position: relative;
    text-align: center;
    z-index: 10;
    width: 70px;\
}

.button3:hover, a:hover{
    background-color:#000;
    cursor:pointer;
    opacity:1 !important;
        text-decoration:none;
        color:#FFFFFF;
}

.button3 a{
    color:#FFFFFF;
   text-decoration:none;

}


.button1{
    background-color: red;
    color:#FFFFFF;
    font: 14px/23px 'TitilliumText25L600wt',Arial,sans-serif;
    height: 20px;
    text-align: center;
    width: 70px;
    z-index: 10;
    opacity: 0.4;
}

.button1 a{
    color:#FFFFFF;
   text-decoration:none;

}

我建议你阅读加入; w3schools是一个好的开始。