Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SQLZOO不接受答案并在我的答案旁边显示Skype标志_Sql - Fatal编程技术网

SQLZOO不接受答案并在我的答案旁边显示Skype标志

SQLZOO不接受答案并在我的答案旁边显示Skype标志,sql,Sql,我的表格结构: 以及: 我试图解决这个问题: Use COALESCE to print the mobile number. Use the number '07986 444 2266' there is no number given. Show teacher name and mobile number or '07986 444 2266' 我的问题是: select name, coalesce (mobile, '07986 444 2266') f

我的表格结构:

以及:

我试图解决这个问题:

  Use COALESCE to print the mobile number. Use the number '07986 444 2266' there is no number   given. Show teacher name and mobile number or '07986 444 2266'
我的问题是:

    select name, coalesce (mobile, '07986 444 2266')
    from teacher t
预期结果是:

但我明白了:


谁能解释一下我做错了什么?或者我的答案可以吗?是电话号码旁边不需要的Skype符号造成了问题,所以SQLZOO不接受这个答案?

我实际上编辑了我的帖子,所以编辑后我的查询如下:

select name, coalesce (mobile, '07986 444 2266')
from teacher t
select name, coalesce (mobile, '0798 644 2266')
from teacher t
在编辑之前,它看起来像这样:

select name, coalesce (mobile, '07986 444 2266')
from teacher t
select name, coalesce (mobile, '0798 644 2266')
from teacher t
基本上,由于打字错误,我的答案旁边出现了一个skype扩展。它实际上与恶意软件或任何其他问题无关。我的查询有一部分是正确的,只是除了预期的结果,其中存在一个打字错误

以前,我的回答是:

编辑并重新运行查询后,将返回正确答案:

感谢@TomasPastircak和@MatBailie指出了我的错误,我对他们给予了充分的赞扬


对不起大家,在这样一个地方问了这么一个愚蠢的问题。我的坏

这是浏览器为显示目的添加的Skype标志(在安装Skype时确认时添加)。这与网站不接受答案无关。问题是您的默认数字中缺少一个
4
。您的查询中有一个输入错误,您返回的是0798 644 2266。。。Skype标志可能是因为浏览器中的Skype扩展,我的建议是卸载该扩展(尽管它根本不会改变结果)-该扩展已被证明是恶意软件。@Tomaspatircak它已被编辑。感谢您指出。如果您重新运行查询,结果是否也会改变?
使用号码“07986 444 2266”
vs
coalesce(mobile,'0798 644 2266')
找出差异?您已移动到空格所在的位置,并错过了
4