找出表中CITY条目的总数与表[1]中不同的CITY条目的数量之间的差:https://i.stack.imgur.com/GTcTN.jpg
select count(*)
from (select CITY
FROM STATION NOT IN (SELECT DISTINCT CITY
FROM STATION))
答案 0 :(得分:1)
容易得多:
=MIN(FIND({1,2,3,4,5,6,7,8,9},A1&"123456789"))-1
您只需要计算城市的所有发生率(ElementRef
)并计算不同的值(@Directive({
selector: '[appTrackClick]'
})
export class TrackClickDirective {
@Input() trackType = 'ButtonClick';
@Input() trackName: string;
@HostListener('click') onClick() {
this.trackClick()
}
constructor(private elementRef: ElementRef) { }
trackClick() {
if (!this.trackName) {
return false;
}
console.log('Element text: ', this.elementRef.nativeElement.innerText);
}
}
)