我有两张桌子
Table 1 Table 2
|leadid|Location| |leadid|leadstatus|
|---------------| |-----------------|
|1 |Japan | |1 | Hired |
|2 |China | |2 | Failed |
|3 |Korea | |3 | Hired |
|4 |Japan | |4 | Hired |
|5 |Japan | |5 | Hired |
Run Code Online (Sandbox Code Playgroud)
我的目标是计算每个国家的访谈次数,并计算每个国家的招聘人数和失败人数.结果表应该是这样的
|Location|Interview|Hired|Failed|
|-------------------------------|
|Japan | 3 |3 |0 |
|Korea | 1 |1 |0 |
|China | 1 |0 |1 |
Run Code Online (Sandbox Code Playgroud)
我已经完成了每个国家的访谈计数.我的问题是我无法计算每个国家的招聘人数和失败人数.这是我目前的MySQL代码:
SELECT Location, count(*) as Interview
FROM table1
GROUP BY Location
ORDER BY Interview DESC
Run Code Online (Sandbox Code Playgroud) 我目前正在处理一个html表单.如何将密码的最小长度设置为8,以便拒绝用户输入的小于8的密码.如何执行此操作?
这是代码:
<div id="login-form">
<form method="post">
<table align="center" width="30%" border="0">
<tr>
<td><input type="text" name="email" placeholder="Your Email" required /></td>
</tr>
<tr>
<td><input type="password" name="pass" placeholder="Your Password" required /></td>
</tr>
<tr>
<td><button type="submit" name="btn-login">Sign In</button></td>
</tr>
<tr>
<td><a href="register.php">Sign Up Here</a></td>
</tr>
</table>
</form>
</div>
Run Code Online (Sandbox Code Playgroud) 抱歉,问题是愚蠢的,因为我只是HTML的初学者。如何将我的按钮向右移动?我尝试了一些方法,但似乎没有用。这是我的代码。
<!DOCTYPE html>
<html>
<head>
<title>Sample Dashboard</title>
<style type="text/css">
p.pos_right {
position: relative;
left: 20px;
}
.button_example{
border:1px solid #f9f68a; -webkit-border-radius: 3px; -moz-border-radius: 3px;border-radius: 3px;font-size:12px;font-family:arial, helvetica, sans-serif; padding: 10px 10px 10px 10px; text-decoration:none; display:inline-block;text- shadow: -1px -1px 0 rgba(0,0,0,0.3);font-weight:bold; color: #FFFFFF;
background-color: #fcfac0; background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfac0), to(#f6f283));
background-image: -webkit-linear-gradient(top, #fcfac0, #f6f283);
background-image: -moz-linear-gradient(top, #fcfac0, #f6f283);
background-image: -ms-linear-gradient(top, #fcfac0, #f6f283);
background-image: -o-linear-gradient(top, #fcfac0, #f6f283);
background-image: linear-gradient(to bottom, #fcfac0, #f6f283);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#fcfac0, endColorstr=#f6f283);
}
.button_example:hover{
border:1px solid #f7f25f;
background-color: #faf68f; …Run Code Online (Sandbox Code Playgroud)