我有这两个SQL select语句;任何人都可以帮助我在一个选择陈述中制作它们吗?
<md-card>
<md-card-title>
<md-card-title-text>
<span class="md-headline">{{selectedLocation.slug}}</span>
</md-card-title-text>
</md-card-title>
<md-select ng-model="selectedLocation">
<md-option ng-repeat="location in global.locations track by $index" value="{{location.slug}}">
{{ location.location_name }}
</md-option>
</md-select>
</md-card>
# Force the alphaWorks version of JZOS to run overriding the SDK
OPTS="-Djava.ext.dirs=£{JZOSAW_HOME}:£{JAVA_HOME}/lib/ext"
export JZOS_JVM_OPTIONS="£OPTS"
答案 0 :(得分:1)
一个非常粗略的描述,但从我的直觉,我认为你想要下面的东西..
SELECT
User_Group.UserID,
Misstion.Mis_Title,
Misstion.Mis_Disc,
Misstion.Mis_Link,
Misstion.Mis_StartDate,
Misstion.Mis_EndDate,
Misstion_User.MU_ID,
Misstion.Mis_ID,
Misstion_User.MU_Date,
Misstion_User.MU_Type
FROM User_Group User_Group
INNER JOIN Misstion_User Misstion_User ON User_Group.Group_ID = Misstion_User.MU_Type
INNER JOIN Misstion Misstion ON Misstion_User.MU_MisstionID = Misstion.Mis_ID
WHERE (User_Group.UserID = 2) AND (Misstion_User.MU_UserID = 2) AND (Misstion.Mis_StartDate = CONVERT(date, GETDATE())) AND (Misstion.Mis_EndDate > CONVERT(date, GETDATE()))