UPDATE TABLE_A
SET "VALUE" = "VALUE" + CASE
WHEN EXISTS(SELECT * FROM TABLE_B WHERE TABLE_B."VALUE" = TABLE_A."VALUE")
THEN + 1
ELSE + 2
END
#include <iostream>
#include "stdio.h"
#include "conio.h"
using namespace std;
int main()
{
setlocale(LC_ALL, "rus");
int result;
char S;
char C;
cout << "Введите предложение => ";
cin >> S;
cout << "Введите набор символов => ";
cin >> C;
for (int i = 0; i < S; i++)
{
for (int j = 0; j < C; j++)
{
if (i == j)
result++;
}
//return result;
}
cout<<"Количество символов => " << result;
}