rspec/rules/S1138/cobol/rule.adoc

37 lines
655 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,cobol]
----
SELECT e.name
FROM employee e
WHERE EXISTS (SELECT * FROM department d WHERE e.department_id = d.id AND d.name = 'Marketing')
----
=== Compliant solution
[source,cobol]
----
SELECT e.name
FROM employee e INNER JOIN department d
ON e.department_id = d.id AND d.name = 'Marketing'
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]